package com.beidasoft.web.vo.system;

import com.beidasoft.web.model.system.User;

import java.util.List;
import java.util.Map;

/**
 * 用户视图
 * Created by Eric on 2015/9/9.
 */
public class UserBean extends User {
    private int length;             // 每页显示记录数
    private int start;              // 起始查询位置
    private int end;
    private String sortField;       // 排序字段
    private String sortType;        // 排序类型
    private List<Map> permission;   // 权限
    private String[] ids;             // 机构ids
    private String userRoleStrings;  //账号角色

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public String getSortField() {
        return sortField;
    }

    public void setSortField(String sortField) {
        this.sortField = sortField;
    }

    public String getSortType() {
        return sortType;
    }

    public void setSortType(String sortType) {
        this.sortType = sortType;
    }

    public List<Map> getPermission() {
        return permission;
    }

    public void setPermission(List<Map> permission) {
        this.permission = permission;
    }

    public String[] getIds() {
        return ids;
    }

    public void setIds(String[] ids) {
        this.ids = ids;
    }

    public int getEnd() {
        return start + length;
    }

    public void setEnd(int end) {
        this.end = end;
    }

    public String getUserRoleStrings() {
        return userRoleStrings;
    }

    public void setUserRoleStrings(String userRoleStrings) {
        this.userRoleStrings = userRoleStrings;
    }

}
